OBJECTS = wmhikikomori.o window.o 
export LFLAGS = -L$(CURDIR)/../wmapp -lwmapp -L/usr/X11R6/lib -lXpm -lXext -lX11

../wmhikikomori: $(OBJECTS) ../wmapp/libwmapp.a
	$(CXX) -fPIC $(CFLAGS) $(OBJECTS) $(LFLAGS) -o $@

$(OBJECTS): %.o: %.cpp
	$(CXX) $(CFLAGS) -c $< -o $@

clean:
	rm -f *.o *\~

.PHONY:	clean

